<?php

namespace App\Http\Controllers\BK;

use App\Services\PrivilegeService;
use App\Http\Controllers\Controller;

class PrivilegeController extends Controller
{
    /**
     * 所有权限
     * @param PrivilegeService $privilegeService
     * @return \Illuminate\Http\JsonResponse
     */
    public function index(PrivilegeService $privilegeService)
    {
        return success($privilegeService->allPrivilege());
    }
}
